<template>
  <view class="success-container">
    <image src="/static/images/success.png" class="success-icon" mode="aspectFill" />
    <text class="success-text">发布成功！</text>
    <text class="tip-text">3秒后自动跳转到"我的"页面</text>
  </view>
</template>

<script>
export default {
  onLoad() {
    setTimeout(() => {
      uni.switchTab({ url: '/pages/tabbar/user/user' });
    }, 3000);
  }
}
</script>

<style scoped>
.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #fff;
}
.success-icon {
  width: 180rpx;
  height: 180rpx;
  margin-bottom: 40rpx;
}
.success-text {
  font-size: 40rpx;
  color: #07c160;
  font-weight: bold;
  margin-bottom: 20rpx;
}
.tip-text {
  font-size: 28rpx;
  color: #999;
}
</style> 